class Solution:
    def findRepeatNumber(self, nums: list) -> int:
        nums.sort()
        for index in range(1, len(nums)):
            if nums[index] == nums[index - 1]:
                return nums[index]


'''
STATUS: SOLVED
TRIES:  1
TIME:   56 MS
MEMORY: 23.2 MB
'''
if __name__ == "__main__":
    solution = Solution()
    input_data = [2, 3, 1, 0, 2, 5, 3]
    print(solution.findRepeatNumber(input_data))
